@use 'sass:map';
@use 'src/scss/gio-layout' as gio-layout;
@use '@angular/material' as mat;
@use '@gravitee/ui-particles-angular' as gio;

:host {
  @include gio-layout.gio-responsive-content-container;
  overflow: visible;
}

.endpoint-group-card {
  margin-bottom: 24px;

  &__header {
    display: flex;
    flex-direction: row;
    margin-bottom: 24px;
    width: 100%;
    height: 36px;

    mat-icon {
      margin-right: 6px;
    }

    &__title {
      display: flex;
      flex-direction: row;
      width: 70%;

      .mat-h4 {
        margin: auto 8px auto 0;
        max-width: 60%;
      }

      .gio-badge-accent,
      .gio-badge-neutral,
      .gio-badge-primary {
        margin: auto 4px auto 0;
        text-transform: unset;
      }
    }

    &__actions {
      width: 50%;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;

      .mat-mdc-outlined-button {
        margin-right: 8px;
      }

      &__button {
        display: flex;
        justify-content: center;

        mat-icon {
          margin: 0;
        }
      }
    }
  }

  .gio-table-light {
    width: 100%;
    margin-bottom: 16px;
  }

  .add_endpoint {
    margin-bottom: 32px;
  }

  &__table {
    &__actions {
      display: flex;
      justify-content: center;
    }
  }

  .mat-column-actions {
    width: 10%;
  }

  .mat-column-name,
  .mat-column-options,
  .mat-column-weight {
    width: 30%;
  }
}
